package com.sgb.kjwl.model.response;

import com.google.gson.annotations.SerializedName;

public class ListXAResponse<T> {
    @SerializedName(value = "list", alternate = {"products", "records", "content"})
    private T list;
    @SerializedName(value = "pageNumber", alternate = {"current", "curPage"})
    private int currentPage;
    @SerializedName(value = "pageSize", alternate = {"pages", "pageCount", "size"})
    private int pageSize;
    @SerializedName(value = "totalRow", alternate = {"total", "totalElements", "recordCount", "totalPage"})
    private int total;
    @SerializedName("lastPage")
    private boolean lastPage;
    @SerializedName("firstPage")
    private boolean firstPage;

    public T getList() {
        return list;
    }

    public void setList(T list) {
        this.list = list;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public boolean isLastPage() {
        return lastPage;
    }

    public void setLastPage(boolean lastPage) {
        this.lastPage = lastPage;
    }

    public boolean isFirstPage() {
        return firstPage;
    }

    public void setFirstPage(boolean firstPage) {
        this.firstPage = firstPage;
    }
}
